﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace myBoard.App.Components.MagnetsStore
{
    public partial class RatingStar
    {
        private bool _active;

        public bool Active
        {
            get { return _active; }
            set
            {
                if (value)
                {
                    _starOn.Visibility = Visibility.Visible;
                    _starOff.Visibility = Visibility.Collapsed;
                }
                else
                {
                    _starOff.Visibility = Visibility.Visible;
                    _starOn.Visibility = Visibility.Collapsed;
                }

                _active = value;
            }
        }

        public RatingStar()
        {
            this.InitializeComponent();

            // Insert code required on object creation below this point.
        }
    }
}
